package vn.edu.tdt.it.domain;

import java.util.LinkedList;
import java.util.List;


public class MyQueue {
	public int parent;
	public int childrent;
	
	public MyQueue(int a, int b) {
		parent = a;
		childrent = b;
	}
	
	@Override
	public boolean equals(Object b) {
		return (childrent == ((MyQueue) b).childrent && parent == ((MyQueue) b).parent);
	}
	
	public static void main(String[] args) {
		List<MyQueue> m = new LinkedList<MyQueue>();
		m.add(new MyQueue(1,1));
		System.out.println(m.contains(new MyQueue(1, 1)));
	}
}
